<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GrPPI: grppi::pipeline_t&lt; Transformers &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GrPPI
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Generic and Reusable Parallel Pattern Interface</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacegrppi.html">grppi</a></li><li class="navelem"><a class="el" href="classgrppi_1_1pipeline__t.html">pipeline_t</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classgrppi_1_1pipeline__t-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">grppi::pipeline_t&lt; Transformers &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Representation of pipeline pattern. Represents a pipeline with multiple chained transformers.  
 <a href="classgrppi_1_1pipeline__t.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="pipeline__pattern_8h_source.html">pipeline_pattern.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ab6a687dc86cbb5ec289eefc325cfff35"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1pipeline__t.html#ab6a687dc86cbb5ec289eefc325cfff35">transformers_type</a> = std::tuple&lt; Transformers... &gt;</td></tr>
<tr class="separator:ab6a687dc86cbb5ec289eefc325cfff35"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8dd5294efabb4e807be0a38e45527321"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1pipeline__t.html#a8dd5294efabb4e807be0a38e45527321">pipeline_t</a> (Transformers &amp;&amp;... others) noexcept</td></tr>
<tr class="memdesc:a8dd5294efabb4e807be0a38e45527321"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a pipeline with several transformers.  <a href="classgrppi_1_1pipeline__t.html#a8dd5294efabb4e807be0a38e45527321">More...</a><br /></td></tr>
<tr class="separator:a8dd5294efabb4e807be0a38e45527321"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf0fcf3abfc742d6af9bd5005fe2fae"><td class="memTemplParams" colspan="2">template&lt;std::size_t index, typename T , typename std::enable_if&lt; index==(sizeof...(Transformers) -1), int &gt;::type  = 0&gt; </td></tr>
<tr class="memitem:a5bf0fcf3abfc742d6af9bd5005fe2fae"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1pipeline__t.html#a5bf0fcf3abfc742d6af9bd5005fe2fae">invoke_all</a> (T item) const</td></tr>
<tr class="separator:a5bf0fcf3abfc742d6af9bd5005fe2fae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf0fcf3abfc742d6af9bd5005fe2fae"><td class="memTemplParams" colspan="2">template&lt;std::size_t index, typename T , typename std::enable_if&lt; index !=(sizeof...(Transformers) -1), int &gt;::type  = 0&gt; </td></tr>
<tr class="memitem:a5bf0fcf3abfc742d6af9bd5005fe2fae"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1pipeline__t.html#a5bf0fcf3abfc742d6af9bd5005fe2fae">invoke_all</a> (T item) const</td></tr>
<tr class="separator:a5bf0fcf3abfc742d6af9bd5005fe2fae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8aa7ed6d13fd7e69441b20cc001b658c"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a8aa7ed6d13fd7e69441b20cc001b658c"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1pipeline__t.html#a8aa7ed6d13fd7e69441b20cc001b658c">operator()</a> (T item) const</td></tr>
<tr class="separator:a8aa7ed6d13fd7e69441b20cc001b658c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48438fe6502be7e746b8e4d9a8a04385"><td class="memTemplParams" colspan="2">template&lt;std::size_t I, typename T &gt; </td></tr>
<tr class="memitem:a48438fe6502be7e746b8e4d9a8a04385"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1pipeline__t.html#a48438fe6502be7e746b8e4d9a8a04385">invoke</a> (T &amp;&amp;item) const</td></tr>
<tr class="memdesc:a48438fe6502be7e746b8e4d9a8a04385"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invokes a trasnformer from the pipeline.  <a href="classgrppi_1_1pipeline__t.html#a48438fe6502be7e746b8e4d9a8a04385">More...</a><br /></td></tr>
<tr class="separator:a48438fe6502be7e746b8e4d9a8a04385"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cf08ebb443b5cd39278de1ff88c2ccc"><td class="memTemplParams" colspan="2">template&lt;std::size_t I&gt; </td></tr>
<tr class="memitem:a6cf08ebb443b5cd39278de1ff88c2ccc"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1pipeline__t.html#a6cf08ebb443b5cd39278de1ff88c2ccc">stage</a> () const noexcept</td></tr>
<tr class="memdesc:a6cf08ebb443b5cd39278de1ff88c2ccc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a transformer from the pipeline.  <a href="classgrppi_1_1pipeline__t.html#a6cf08ebb443b5cd39278de1ff88c2ccc">More...</a><br /></td></tr>
<tr class="separator:a6cf08ebb443b5cd39278de1ff88c2ccc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62003fb555e83aa045271adf3b7242bd"><td class="memItemLeft" align="right" valign="top">auto&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1pipeline__t.html#a62003fb555e83aa045271adf3b7242bd">transformers</a> () const noexcept</td></tr>
<tr class="separator:a62003fb555e83aa045271adf3b7242bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename ... Transformers&gt;<br />
class grppi::pipeline_t&lt; Transformers &gt;</h3>

<p>Representation of pipeline pattern. Represents a pipeline with multiple chained transformers. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Transformer</td><td>Callable type for the first transformer. </td></tr>
    <tr><td class="paramname">OtherTransformers</td><td>Callable types for the rest of transformers. </td></tr>
  </table>
  </dd>
</dl>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="ab6a687dc86cbb5ec289eefc325cfff35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6a687dc86cbb5ec289eefc325cfff35">&#9670;&nbsp;</a></span>transformers_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... Transformers&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classgrppi_1_1pipeline__t.html">grppi::pipeline_t</a>&lt; Transformers &gt;::<a class="el" href="classgrppi_1_1pipeline__t.html#ab6a687dc86cbb5ec289eefc325cfff35">transformers_type</a> =  std::tuple&lt;Transformers...&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a8dd5294efabb4e807be0a38e45527321"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8dd5294efabb4e807be0a38e45527321">&#9670;&nbsp;</a></span>pipeline_t()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... Transformers&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgrppi_1_1pipeline__t.html">grppi::pipeline_t</a>&lt; Transformers &gt;::<a class="el" href="classgrppi_1_1pipeline__t.html">pipeline_t</a> </td>
          <td>(</td>
          <td class="paramtype">Transformers &amp;&amp;...&#160;</td>
          <td class="paramname"><em>others</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructs a pipeline with several transformers. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>Transformer for the first stage of the pipeline. </td></tr>
    <tr><td class="paramname">others</td><td>Rest of transformers for the other stages of the pipeline. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a48438fe6502be7e746b8e4d9a8a04385"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48438fe6502be7e746b8e4d9a8a04385">&#9670;&nbsp;</a></span>invoke()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... Transformers&gt; </div>
<div class="memtemplate">
template&lt;std::size_t I, typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto <a class="el" href="classgrppi_1_1pipeline__t.html">grppi::pipeline_t</a>&lt; Transformers &gt;::invoke </td>
          <td>(</td>
          <td class="paramtype">T &amp;&amp;&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Invokes a trasnformer from the pipeline. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">I</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5bf0fcf3abfc742d6af9bd5005fe2fae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bf0fcf3abfc742d6af9bd5005fe2fae">&#9670;&nbsp;</a></span>invoke_all() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... Transformers&gt; </div>
<div class="memtemplate">
template&lt;std::size_t index, typename T , typename std::enable_if&lt; index==(sizeof...(Transformers) -1), int &gt;::type  = 0&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto <a class="el" href="classgrppi_1_1pipeline__t.html">grppi::pipeline_t</a>&lt; Transformers &gt;::invoke_all </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5bf0fcf3abfc742d6af9bd5005fe2fae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bf0fcf3abfc742d6af9bd5005fe2fae">&#9670;&nbsp;</a></span>invoke_all() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... Transformers&gt; </div>
<div class="memtemplate">
template&lt;std::size_t index, typename T , typename std::enable_if&lt; index !=(sizeof...(Transformers) -1), int &gt;::type  = 0&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto <a class="el" href="classgrppi_1_1pipeline__t.html">grppi::pipeline_t</a>&lt; Transformers &gt;::invoke_all </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a8aa7ed6d13fd7e69441b20cc001b658c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8aa7ed6d13fd7e69441b20cc001b658c">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... Transformers&gt; </div>
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto <a class="el" href="classgrppi_1_1pipeline__t.html">grppi::pipeline_t</a>&lt; Transformers &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a6cf08ebb443b5cd39278de1ff88c2ccc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cf08ebb443b5cd39278de1ff88c2ccc">&#9670;&nbsp;</a></span>stage()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... Transformers&gt; </div>
<div class="memtemplate">
template&lt;std::size_t I&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto <a class="el" href="classgrppi_1_1pipeline__t.html">grppi::pipeline_t</a>&lt; Transformers &gt;::stage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets a transformer from the pipeline. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">I</td><td>index into the pipeline. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The selected transformer object. </dd></dl>

</div>
</div>
<a id="a62003fb555e83aa045271adf3b7242bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62003fb555e83aa045271adf3b7242bd">&#9670;&nbsp;</a></span>transformers()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... Transformers&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto <a class="el" href="classgrppi_1_1pipeline__t.html">grppi::pipeline_t</a>&lt; Transformers &gt;::transformers </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pipeline__pattern_8h_source.html">pipeline_pattern.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
